<%@page import="service.CategoryService"%>
<%@page import="java.io.IOException"%>
<%@page import="java.io.PrintWriter"%>
<%@page import="util.DataBaseUtils"%>
<%@page import="java.util.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String id = request.getParameter("id");

	CategoryService categoryService = new CategoryService();
	categoryService.deleteCategory(id);
	
	response.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
	PrintWriter writer = null;
	try {
		writer = response.getWriter();
	} catch (IOException e) {
		e.printStackTrace();
	}
	writer.write("<script>location.href='type.jsp';</script>");
	writer.flush();

%>